package com.example.controller;

import com.example.school.SchoolMockData;
import com.example.school.Student;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class StudentController {
    @GetMapping("/selectStudents")
    public List<Student> selectStudents() {
        return SchoolMockData.getStuentList();
    }
}
